
import { Modal } from 'antd';
const { confirm } = Modal;
const msg = (content: string) => <div dangerouslySetInnerHTML={{__html: content}}></div>
const AsyncConfirm = (content:string = '', title = "确认提交?") => {
    return new Promise((resolve, reject) => {
        confirm({
            title,
            content: msg(content),
            onOk() {
                resolve(true)
            },
            onCancel() {
                resolve(false)
            },
        });
    })
};
export default AsyncConfirm